//
//  TReleaseHomeHelperViewController.m
//  LoveShare
//
//  Created by ways on 2017/4/26.
//  Copyright © 2017年 tikeyc. All rights reserved.
//

#import "TReleaseHomeHelperViewController.h"

#import "THomeHelperListViewController.h"
#import "TCollectionAddPhotoView.h"

@interface TReleaseHomeHelperViewController ()

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet TCollectionAddPhotoView *collectionAddPhotoView;


@end

@implementation TReleaseHomeHelperViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"令居帮手";
    
    [self initProperty];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
    self.scrollView.contentSize = CGSizeMake(0, TScreenHeight);
}


/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */


#pragma mark - init

- (void)initProperty {
    
    [self initNavigationBarItem];
    
}


- (void)initNavigationBarItem {
    
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"发布记录" style:UIBarButtonItemStylePlain target:self action:@selector(rightBarItemClickAction)];
    self.navigationItem.rightBarButtonItem = rightItem;
}

#pragma mark - Actions Method

- (void)rightBarItemClickAction {
    THomeHelperListViewController *helperList = [[THomeHelperListViewController alloc] init];
    helperList.isReleaseHomeHelperComing = YES;
    [self.navigationController pushViewController:helperList animated:YES];
}

@end
